<?php
/**
 * +------ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER * ---------+
 * +----------------------------------------------------------------------------+
 * | PHPKiisf - Keep It in Simple Framework										|
 * | Version 1.0																|
 * | Copyright (C) <2013>  Mario Cezzare <mcezzare@gmail.com>					|
 * | Blog: http://mcezzare.blogspot.com.br										|
 * |																			|
 * | This program is part of PHPKiisf, and is free software: you can			|
 * | redistribute it and/or modify it under the terms of the GNU 				|
 * | General Public License as published by										|
 * | the Free Software Foundation, either version 3 of the License, or			|
 * | (at your option) any later version.										|
 * |																			|
 * | This program is distributed in the hope that it will be useful,			|
 * | but WITHOUT ANY WARRANTY; without even the implied warranty of				|
 * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the				|
 * | GNU General Public License for more details.								|
 * | You should have received a copy of the GNU General Public License			|
 * | along with this program.  If not, see <http://www.gnu.org/licenses/>.		|
 * +----------------------------------------------------------------------------+
 * | Author : <Mario Cezzare Angelicola Chiodi> <mcezzare@gmail.com>			|
 * +----------------------------------------------------------------------------+
 * | Contributors																|
 * |																			|
 * +----------------------------------------------------------------------------+
 *
 */
/**
 * This file is the framework about description and same examples
 *
 * @package Templates
 * @access public
 * @since 2013-03-08
 * @author Mario Cezzare <mcezzare@gmail.com>
 */
?>
<?
require_once sprintf( "%s/%s%s" , base_template::$public_dir , 'header' , INCLUDE_EXTENSION );
require_once sprintf( "%s/%s%s" , base_template::$public_dir , 'navbar' , INCLUDE_EXTENSION );


//just to minify
$global_params	 = base_template::$global_params;
/**
 * Verifiy if this page is running on test mode
 */
$test_mode		 = false;
if ( is_array( $global_params ) ) {
		if ( in_array( "test" , $global_params[ 0 ] ) ) {
				$test_mode = true;
		}
}
//uncomment for debug
//echo __FILE__ . "<br>" ;
//print_r( dispatcher::$_active_route ) ;
//print_pre( $global_params ) ;
?>

<div class="container">
		<div class="hero-unit">
				<h1>
						<img src="<?= base_template::$public_media_dir ?>/img/icon_about.png"/><?= base_template::$section_name; ?>

				</h1>
				<p>Tiny PHP MVC Framework for fast deploy web applications.<br />
				  This is not a sandbox or jail.<br />
It's distributed in the hope that it will be useful. If you don't like, don't use it.<!--<p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>-->
		</p></div>

		<div class="hero-unit">
				<p>
						Basic Components are:
				<h4>PHP/Backend	</h4>
				All start from 																	<br />
				--Dispatcher / based on Rewrite Rules forcing all to index.php					<br />
				--All objects created by the dispatcher does not need to use require or include	<br />
				<h4>PHP/Modules in this Framework</h4>
				-All extensible																	<br />
				--Default Controller															<br />
				--Default Model																	<br />
				--Default View																	<br />
				--Default Dao																	<br />
				--Some Functions and Classes on /Lib 											<br />
				--Global Configuration and Initialization file 									<br />

				<h4>HTML,JS,CSS/Interface</h4>
				--Customizable Skins , Boilerplate Default 										<br />
				--jQuery latest																	<br />
				<br />
				If you will just use the framework, just keep the headers on they already are.	<br />
				<br />
				But...																			<br />
				If you want to help extend this framework , follow this simple topics :			<br />
				<br />
				1 - Include the following header in all new files that will be part of the 		<br />
				framework ,																		<br />
				and add your contact as a Contributor.											</p>
				<div>

						<? $text = "
/**
 * +------ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER * ----------+
 * +-----------------------------------------------------------------------------+
 * | PHPKiisf - Keep It in Simple Framework.-------------------------------------|
 * | Version 1.0-----------------------------------------------------------------|
 * | Copyright (C) <2013>  Mario Cezzare <mcezzare@gmail.com>--------------------|
 * | Blog: http://mcezzare.blogspot.com.br---------------------------------------|
 * |-----------------------------------------------------------------------------|
 * | This program is part of PHPKiisf, and is free software: you can-------------|
 * | redistribute it and/or modify it under the terms of the GNU-----------------|
 * | General Public License as published by--------------------------------------|
 * | the Free Software Foundation, either version 3 of the License, or-----------|
 * | (at your option) any later version.-----------------------------------------|
 * |-----------------------------------------------------------------------------|
 * | This program is distributed in the hope that it will be useful,-------------|
 * | but WITHOUT ANY WARRANTY; without even the implied warranty of--------------|
 * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the---------------|
 * | GNU General Public License for more details.--------------------------------|
 * | You should have received a copy of the GNU General Public License-----------|
 * | along with this program.  If not, see <http://www.gnu.org/licenses/>.-------|
 * +-----------------------------------------------------------------------------+
 * | Author : <Mario Cezzare Angelicola Chiodi> <mcezzare@gmail.com>-------------|
 * +-----------------------------------------------------------------------------+
 * | Contributors----------------------------------------------------------------|
 * |-----------------------------------------------------------------------------|
 * +-----------------------------------------------------------------------------+
 * +-----------------------------------------------------------------------------+
 * Please fill the basic information on header for each file
 * +-----------------------------------------------------------------------------+
 * DESCRIPTION/OBJECTIVE OF FILE OR CLASS
 * +-----------------------------------------------------------------------------+
 * @package	___
 * @subpackage	___
 * @access	__________
 * @since	__________
 * @author	_____________ <____@__.__>
 * +-----------------------------------------------------------------------------+
 */"; ?>
						<pre style="font-size: 70%;">
								<? print htmlspecialchars( trim( $text ) ); ?>
						</pre>
						<div class="row">

						</div>
				</div>
		</div>
		<?
		/* @todo : control this via post */
		?>

		<div class="span12">

				<hr>
				<footer>
						<p>
								&copy; <a href="<?= FMW_URL_ABOUT; ?>" target="_blank">PHPKissf 2013</a>
						</p>
				</footer>
		</div>
</div>
</div>
<!-- /container -->
<?
require_once sprintf( "%s/%s%s" , base_template::$public_dir , 'footer' , INCLUDE_EXTENSION );

function build_space( $width = 1 ) {
		$pre_path = base_template::$public_media_dir;
		echo "<img src=\"$pre_path/img/blank.png\"/  height=1 width=$width>";
}
?>